![]() |
PATH![]() |
![]() ![]() |
The Appearance Manager defines the type for an application-defined theme iteration function as follows:
typedef pascal (Boolean, ThemeIteratorProcPtr) (
ConstStr255Param inFileName,
SInt16 resID,
Collection inThemeSettings,
void *inUserData);
The Appearance Manager defines the data type ThemeIteratorUPP to identify the universal procedure pointer for an application-defined theme iteration function:
typedef ThemeIteratorProcPtr ThemeIteratorUPP;
You typically use the NewThemeIteratorProc macro like this:
ThemeIteratorUPP myThemeIteratorUPP;
myThemeIteratorUPP = NewThemeIteratorProc(MyThemeIteratorProc);
You typically use the CallThemeIteratorProc macro like this:
CallThemeIteratorProc(myThemeIteratorUPP, inFileName, resID, inThemeSettings,
inUserData);
To implement your own theme iteration function, see MyThemeIteratorProc . The ThemeIteratorProcPtr type is available with Appearance Manager 1.1 and later.